/**
 * @Author: 焦质晔
 * @Date: 2019/6/20
 * @Last Modified by: max.jianhua
 * @Last Modified time: 2020-11-20 15:21:28
 */
import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 返利规则分页查询
export const queryList = (params) => axios.post(`${SERVER.WHOLESALES}/rebateRule/queryList`, params)

// 根据id获取返利规则
export const findById = (params) => axios.get(`${SERVER.WHOLESALES}/rebateRule/findById`, {
  params
})

// 返利规则新增/修改
export const saveRule = (params) => axios.post(`${SERVER.WHOLESALES}/rebateRule/saveRule`, params)

export const checkProduct = (params) => axios.post(`${SERVER.WHOLESALES}/rebateRule/checkProduct`, params)

// 选装查询  vehicleProduct/options
export const options = (params) => axios.get(`${SERVER.BASEDATA}/vehicleProduct/options`, {
  params
})
